// pages/pickUpCode/pickUpCode.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
  
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var pickupCode = options.pickupCode
    var newArr=[];
    for (var i = 0; i < pickupCode.length;i++){
      var item = pickupCode.substr(i,1);
      newArr.push(item)
    }
    this.setData({
      newArr: newArr
    })
  },
  //完成
  complete:function(){
    wx.switchTab({
      url: '../index/index'
    })
  }
})